import React from 'react';
import BasePosts from "./BasePosts";
import {useQuery} from "../Helpers";

export default function SearchResultsPage() {
    const query = useQuery()
    const queryPage = query.get('page')
    const keyword = query.get('keyword')
    const url = `/api/v1/posts/search/`
    const name = `查找关键字"${keyword}": `
    return <BasePosts name={name} url={url} keyword={keyword} queryPage={queryPage}/>
};

